//
//  DTTimePeriod+Utils.m
//  YZMicroStock
//
//  Created by wangminhong on 16/6/9.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import "DTTimePeriod+Utils.h"

@implementation DTTimePeriod (Utils)

- (void)encodeWithCoder:(NSCoder *)coder{
    
    [coder encodeObject:self.StartDate forKey:@"DTTimePeriodForStartDate"];
    [coder encodeObject:self.EndDate forKey:@"DTTimePeriodForEndDate"];
}

- (instancetype)initWithCoder:(NSCoder *)coder{
    
    self = [super init];
    if (self) {
        
        self.StartDate = [coder decodeObjectForKey:@"DTTimePeriodForStartDate"];
        self.EndDate = [coder decodeObjectForKey:@"DTTimePeriodForEndDate"];
    }
    
    return self;
}

@end
